/*
 * @Author: wuyuc
 * @Date: 2022-01-20 15:02:54
 * @LastEditors: wuyuc
 * @LastEditTime: 2022-01-20 16:48:50
 * @Description: file content
 * @FilePath: \react-family\src\index.js
 */
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route, Routes } from 'react-router-dom'
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import Home from './pages/home/index'
import My from './pages/my/index'
ReactDOM.render(
  <BrowserRouter>
    <Routes>
      <Route path='/' element={<App />}>
        <Route path="home" element={<Home />} />
        <Route path="my" element={<My />} />
      </Route>
    </Routes>
  </BrowserRouter>,
  document.getElementById('root')
);
reportWebVitals(console.log);
